package com.msb.pojo;

import javax.xml.crypto.Data;
import java.io.Serializable;
import java.util.Date;

//该实体类对应数据库表tb
public class User implements Serializable {
    private int uid;
    private String username;
    private String password;
    private String phone;
    private Date createDate;

    public User() {
    }

    public User(int uid, String username, String password, String phone, Date createDate) {
        this.uid = uid;
        this.username = username;
        this.password = password;
        this.phone = phone;
        this.createDate = createDate;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    @Override
    public String toString() {
        return "User{" +
                "uid=" + uid +
                ", 名字='" + username + '\'' +
                ", 密码='" + password + '\'' +
                ", 电话='" + phone + '\'' +
                ", 时间=" + createDate +
                '}';
    }
}

